<template>
  <div class="leftBook">
    <div class="title">库存信息:</div>
    <div class="my_top1">
      <div class="item">
        <span>图书名称: </span
        ><el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>
      </div>
      <div class="search">搜索</div>
      <div class="cz">重置</div>
    </div>
    <div class="table">
      <el-table
        :data="tableData"
        stripe
        style="width: 100%"
        :header-cell-style="{
          background: '#F3E3E4',
          fontSize: '10px',
        }"
      >
        <el-table-column prop="book" label="书号" width="120">
        </el-table-column>
        <el-table-column prop="name" label="书名"> </el-table-column>
        <el-table-column prop="author" label="作者"> </el-table-column>
        <el-table-column prop="surplus" label="剩余数量"> </el-table-column>
        <el-table-column prop="gross" label="图书总量"> </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      options: [{
        value: '选项1',
        label: '黄金糕'
      }, {
        value: '选项2',
        label: '双皮奶'
      }],
      value: '',
      tableData: [{
        book: '454361545556          ',
        name: '书海五位',
        author: '郭德纲',
        surplus: '9',
        gross: '20'
      }, {
        book: '454361545556          ',
        name: '书海五位',
        author: '郭德纲',
        surplus: '9',
        gross: '20'
      }]
    }
  }
}
</script>

<style lang="scss" scoped>
.leftBook {
  .title {
    height: 50px;
    line-height: 50px;
    padding-left: 20px;

    font-size: 14px;
    font-family: Adobe Heiti Std;
    font-weight: normal;
    color: #000000;
  }
}
.item {
  display: flex;
  text-align: center;
  line-height: 30px;
}
.my_top1 {
  display: flex;
  align-items: center;
  padding-left: 20px;
  font-size: 12px;
  .search {
    width: 90px;
    height: 30px;
    background: #f3e3e4;
    border: 1px solid #8a8a8a;
    border-radius: 14px;
    text-align: center;
    line-height: 28px;
    margin: 0 5px;
    font-size: 14px;
    font-family: Adobe Heiti Std;
    font-weight: normal;
    color: #000000;
  }
  .cz {
    width: 90px;
    height: 30px;
    background: #960006;
    border: 1px solid #8a8a8a;
    border-radius: 14px;
    text-align: center;
    line-height: 28px;
    font-size: 14px;
    font-family: Adobe Heiti Std;
    font-weight: normal;
    color: #ffffff;
  }
}
.table {
  margin-top: 18px;
  padding-left: 10px;
}
/deep/ .el-input__inner {
  width: 100px;
  height: 30px;
  font-size: 10px;
  border-radius: none;
}
/deep/ .el-input__icon{
  line-height: none;
}
</style>